<!--
 * @Author: 天羽落星辰
 * @Date: 2020-08-17 03:07:00
 * @LastEditors: 天羽落星辰
 * @LastEditTime: 2020-08-17 11:42:35
 * @Description: file content
-->
<style>
    .atr {
        text-align: center;
        vertical-align: middle;
    }
</style>
<div class="container mt-20">
    <div id="content-container">
        <div class="row">
            <div class="col-md-3">
                {include file="common/sidenav" /}
            </div>
            <div class="col-md-9">
                <div class="panel panel-default panel-user">
                    <div class="panel-body">
                        <div class="page-header panel-post">
                            <h2>{$title}</h2>
                        </div>

                        <div class="row">
                            <div class="fixed-table-body">
                                <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                                    data-operate-edit="1" data-operate-del="1" width="100%">
                                    <thead>
                                        <tr>

                                            <!-- <th class="atr" data-field="company">
                                                <div class="th-inner ">备注</div>
                                                <div class="fht-cell"></div>
                                            </th> -->
                                            <th class="atr" data-field="apikey">
                                                <div class="th-inner ">授权码</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <!-- <th class="atr" data-field="everyday_number">
                                                <div class="th-inner ">每日请求次数</div>
                                                <div class="fht-cell"></div>
                                            </th> -->
                                            <th class="atr" data-field="end_time">
                                                <div class="th-inner ">到期时间</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th class="atr" data-field="operate">
                                                <div class="th-inner ">操作</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                        </tr>
                                    </thead>
                                   
                                    <tbody data-listidx="0">
                                        {volist name='row' id='v'}
                                        <tr data-index="0">
                                            <!-- 备注 -->
                                            <!-- <td class="atr">{$v.company}</td> -->
                                            <td class="atr">{$v.apikey}</td>
                                            <!-- 每日请求次数 -->
                                            <!-- <td class="atr">111</td>  -->
                                            <td class="atr">{$v.end_time|date='Y-m-d H:i',###}</td>
                                            <td class="atr"><a href="{:url('/index/nozzle/empower/edit', ['ids' => $v.id])}"
                                                    class="btn btn-xs btn-success btn-editone" data-toggle="tooltip"
                                                    title="编辑" data-table-id="table" data-field-index="9"
                                                    data-row-index="0" data-button-index="1"><i
                                                        class="fa fa-pencil"></i></a> </td>
                                        </tr>
                                        {/volist}
                                    </tbody>
                                    
                                </table>
                            </div>
                        </div>
                        <hr>
                        

                        {if $row->total()==0}
                        未找到任何记录!
                        {/if}
                        <div class="pager">{$row->render()}</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>